import request from "@/utils/request";
import { ParseData } from "@/utils/utils";

//获取资料库列表分页
export const GetDatabaseList = (data: any) => {
  return request({
    method: "GET",
    url: `/ziliaoku?${ParseData(data)}`,
  });
};
// 资料库编辑信息
export const GetDatabase = (data: any) => {
  return request({
    method: "GET",
    url: `/ziliaoku/${data.id}`,
  });
};
// 资料库详情信息
export const GetDatabaseDetail = (data: any) => {
  return request({
    method: "GET",
    url: `/ziliaoku/xiangqing/${data.id}`,
  });
};
// 资料库新增
export const AddDatabase = (data: any) => {
  return request({
    method: "POST",
    url: `/ziliaoku`,
    data,
  });
};
// 资料库编辑
export const EditDatabase = (data: any) => {
  return request({
    method: "PUT",
    url: `/ziliaoku`,
    data,
  });
};

